1
using System
.Collections
;
2 using System
.Collections
.Generic
;
6 public class FindMenuManager
: MonoBehaviour
{
8 private GameObject menuManager
;
9 private MenuManager menuManagerScript
;
15 // Use this for initialization
17 menuManager
= GameObject
.FindGameObjectWithTag ("MenuManager");
18 menuManagerScript
= menuManager
.GetComponent
<MenuManager
> ();
21 // Update is called once per frame
26 public void GoToMainMenu()
28 menuManagerScript
.GoToMainMenu ();
31 public void GoToLevelSelection()
33 menuManagerScript
.GoToLevelSelection ();
36 public void GoToCharacterSelection ()
38 menuManagerScript
.GoToCharacterSelection ();
41 public void GoToSettings()
43 menuManagerScript
.GoToSettings ();
46 public void GoToCredits()
48 menuManagerScript
.GoToCredits ();
51 public void GoToInstructions ()
53 menuManagerScript
.GoToInstructions ();
56 public void GoToExit()
58 menuManagerScript
.StopMenuMusic ();
59 menuManagerScript
.ExitGame ();
63 public void SetMasterVolume(Slider slider
){
64 menuManagerScript
.UpdateMasterValue (slider
);
67 public void SetAmbientVolume(Slider slider
)
69 menuManagerScript
.UpdateAmbientValue (slider
);
72 public void SetSFXVolume(Slider slider
)
74 menuManagerScript
.UpdateSFXValue (slider
);